<?php
// +----------------------------------------------------------------------
// | Author: Stupboy King
// +----------------------------------------------------------------------
namespace app\api\validate;

use think\Validate;

class CarOil extends Validate
{
    // 验证规则
    protected $rule = [
        'car_id'     => 'require|number',
        'driver_id|司机'      => 'require|number',
        'add_date|加油日期'   => 'require|date',
        'add_count|加油量'    => 'require|float',
        'add_money|加油金额'  => 'require|float',
        'oil_pic|加油小票'    => 'require',
        'oil_level'           => 'require',
        'car_pic|里程照片'    => 'require',
        'car_meter|车辆里程'  => 'require|float',
    ];

    protected $msg = [
        'car_id.require'=>'车辆未绑定',
    ];
}